﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class  TW_Icd_Customer : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } } private string _ID; public static FieldInfo iD = new FieldInfo("TW_Icd_Customer", "ID");
        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } } private string _Process; public static FieldInfo process = new FieldInfo("TW_Icd_Customer", "Process");
        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } } private int _Incident; public static FieldInfo incident = new FieldInfo("TW_Icd_Customer", "Incident");
        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } } private string _UserName; public static FieldInfo userName = new FieldInfo("TW_Icd_Customer", "UserName");
        [Column]
        public string VD_Category { get { return _VD_Category; } set { _VD_Category = value; EntityState.FieldChange("VD_Category"); } } private string _VD_Category; public static FieldInfo vD_Category = new FieldInfo("TW_Icd_Customer", "VD_Category");
        [Column]
        public string UserFullName { get { return _UserFullName; } set { _UserFullName = value; EntityState.FieldChange("UserFullName"); } } private string _UserFullName; public static FieldInfo userFullName = new FieldInfo("TW_Icd_Customer", "UserFullName");
        [Column]
        public string Department { get { return _Department; } set { _Department = value; EntityState.FieldChange("Department"); } } private string _Department; public static FieldInfo department = new FieldInfo("TW_Icd_Customer", "Department");
        [Column]
        public string ApplicationNo { get { return _ApplicationNo; } set { _ApplicationNo = value; EntityState.FieldChange("ApplicationNo"); } } private string _ApplicationNo; public static FieldInfo applicationNo = new FieldInfo("TW_Icd_Customer", "ApplicationNo");
        [Column]
        public string DrpPriority { get { return _DrpPriority; } set { _DrpPriority = value; EntityState.FieldChange("DrpPriority"); } } private string _DrpPriority; public static FieldInfo drpPriority = new FieldInfo("TW_Icd_Customer", "DrpPriority");
        [Column]
        public string DMO_DrpPriority { get { return _DMO_DrpPriority; } set { _DMO_DrpPriority = value; EntityState.FieldChange("DMO_DrpPriority"); } } private string _DMO_DrpPriority; public static FieldInfo dMO_DrpPriority = new FieldInfo("TW_Icd_Customer", "DMO_DrpPriority");

        [Column]
        public string Account_Group { get { return _Account_Group; } set { _Account_Group = value; EntityState.FieldChange("Account_Group"); } } private string _Account_Group; public static FieldInfo account_Group = new FieldInfo("TW_Icd_Customer", "Account_Group");
        [Column]
        public string Existed_Vendor_Code { get { return _Existed_Vendor_Code; } set { _Existed_Vendor_Code = value; EntityState.FieldChange("Existed_Vendor_Code"); } } private string _Existed_Vendor_Code; public static FieldInfo existed_Vendor_Code = new FieldInfo("TW_Icd_Customer", "Existed_Vendor_Code");
        [Column]
        public string Old_BPCS_Customer_Code { get { return _Old_BPCS_Customer_Code; } set { _Old_BPCS_Customer_Code = value; EntityState.FieldChange("Old_BPCS_Customer_Code"); } } private string _Old_BPCS_Customer_Code; public static FieldInfo old_BPCS_Customer_Code = new FieldInfo("TW_Icd_Customer", "Old_BPCS_Customer_Code");
        [Column]
        public string Name1 { get { return _Name1; } set { _Name1 = value; EntityState.FieldChange("Name1"); } } private string _Name1; public static FieldInfo name1 = new FieldInfo("TW_Icd_Customer", "Name1");
        [Column]
        public string Search_Term1 { get { return _Search_Term1; } set { _Search_Term1 = value; EntityState.FieldChange("Search_Term1"); } } private string _Search_Term1; public static FieldInfo search_Term1 = new FieldInfo("TW_Icd_Customer", "Search_Term1");
        [Column]
        public string Search_Term2 { get { return _Search_Term2; } set { _Search_Term2 = value; EntityState.FieldChange("Search_Term2"); } } private string _Search_Term2; public static FieldInfo search_Term2 = new FieldInfo("TW_Icd_Customer", "Search_Term2");
        [Column]
        public string Country { get { return _Country; } set { _Country = value; EntityState.FieldChange("Country"); } } private string _Country; public static FieldInfo country = new FieldInfo("TW_Icd_Customer", "Country");
        [Column]
        public string Region { get { return _Region; } set { _Region = value; EntityState.FieldChange("Region"); } } private string _Region; public static FieldInfo region = new FieldInfo("TW_Icd_Customer", "Region");
        [Column]
        public string Language { get { return _Language; } set { _Language = value; EntityState.FieldChange("Language"); } } private string _Language; public static FieldInfo language = new FieldInfo("TW_Icd_Customer", "Language");
        [Column]
        public string Street { get { return _Street; } set { _Street = value; EntityState.FieldChange("Street"); } } private string _Street; public static FieldInfo street = new FieldInfo("TW_Icd_Customer", "Street");
        [Column]
        public string Postal_Code { get { return _Postal_Code; } set { _Postal_Code = value; EntityState.FieldChange("Postal_Code"); } } private string _Postal_Code; public static FieldInfo postal_Code = new FieldInfo("TW_Icd_Customer", "Postal_Code");
        [Column]
        public string Contact_Person { get { return _Contact_Person; } set { _Contact_Person = value; EntityState.FieldChange("Contact_Person"); } } private string _Contact_Person; public static FieldInfo contact_Person = new FieldInfo("TW_Icd_Customer", "Contact_Person");
        [Column]
        public string Telephone { get { return _Telephone; } set { _Telephone = value; EntityState.FieldChange("Telephone"); } } private string _Telephone; public static FieldInfo telephone = new FieldInfo("TW_Icd_Customer", "Telephone");
        [Column]
        public string Email { get { return _Email; } set { _Email = value; EntityState.FieldChange("Email"); } } private string _Email; public static FieldInfo email = new FieldInfo("TW_Icd_Customer", "Email");
        [Column]
        public string Fax_Number { get { return _Fax_Number; } set { _Fax_Number = value; EntityState.FieldChange("Fax_Number"); } } private string _Fax_Number; public static FieldInfo fax_Number = new FieldInfo("TW_Icd_Customer", "Fax_Number");
        [Column]
        public string Transportation_zone { get { return _Transportation_zone; } set { _Transportation_zone = value; EntityState.FieldChange("Transportation_zone"); } } private string _Transportation_zone; public static FieldInfo transportation_zone = new FieldInfo("TW_Icd_Customer", "Transportation_zone");
        [Column]
        public string Industry { get { return _Industry; } set { _Industry = value; EntityState.FieldChange("Industry"); } } private string _Industry; public static FieldInfo industry = new FieldInfo("TW_Icd_Customer", "Industry");
        [Column]
        public string Industry_Code1 { get { return _Industry_Code1; } set { _Industry_Code1 = value; EntityState.FieldChange("Industry_Code1"); } } private string _Industry_Code1; public static FieldInfo industry_Code1 = new FieldInfo("TW_Icd_Customer", "Industry_Code1");
        [Column]
        public string Industry_Code2 { get { return _Industry_Code2; } set { _Industry_Code2 = value; EntityState.FieldChange("Industry_Code2"); } } private string _Industry_Code2; public static FieldInfo industry_Code2 = new FieldInfo("TW_Icd_Customer", "Industry_Code2");
        [Column]
        public string Industry_Code3 { get { return _Industry_Code3; } set { _Industry_Code3 = value; EntityState.FieldChange("Industry_Code3"); } } private string _Industry_Code3; public static FieldInfo industry_Code3 = new FieldInfo("TW_Icd_Customer", "Industry_Code3");
        [Column]
        public string Bank_Country { get { return _Bank_Country; } set { _Bank_Country = value; EntityState.FieldChange("Bank_Country"); } } private string _Bank_Country; public static FieldInfo bank_Country = new FieldInfo("TW_Icd_Customer", "Bank_Country");
        [Column]
        public string Bank_Name { get { return _Bank_Name; } set { _Bank_Name = value; EntityState.FieldChange("Bank_Name"); } } private string _Bank_Name; public static FieldInfo bank_Name = new FieldInfo("TW_Icd_Customer", "Bank_Name");
        [Column]
        public string Bank_Key { get { return _Bank_Key; } set { _Bank_Key = value; EntityState.FieldChange("Bank_Key"); } } private string _Bank_Key; public static FieldInfo bank_Key = new FieldInfo("TW_Icd_Customer", "Bank_Key");
        [Column]
        public string Bank_Account { get { return _Bank_Account; } set { _Bank_Account = value; EntityState.FieldChange("Bank_Account"); } } private string _Bank_Account; public static FieldInfo bank_Account = new FieldInfo("TW_Icd_Customer", "Bank_Account");
        [Column]
        public string Account { get { return _Account; } set { _Account = value; EntityState.FieldChange("Account"); } } private string _Account; public static FieldInfo account = new FieldInfo("TW_Icd_Customer", "Account");
        [Column]
        public string Company { get { return _Company; } set { _Company = value; EntityState.FieldChange("Company"); } } private string _Company; public static FieldInfo company = new FieldInfo("TW_Icd_Customer", "Company");
        [Column]
        public string Recon_Account { get { return _Recon_Account; } set { _Recon_Account = value; EntityState.FieldChange("Recon_Account"); } } private string _Recon_Account; public static FieldInfo recon_Account = new FieldInfo("TW_Icd_Customer", "Recon_Account");
        [Column]
        public string Sort_Key { get { return _Sort_Key; } set { _Sort_Key = value; EntityState.FieldChange("Sort_Key"); } } private string _Sort_Key; public static FieldInfo sort_Key = new FieldInfo("TW_Icd_Customer", "Sort_Key");
        [Column]
        public string Prev_Acct { get { return _Prev_Acct; } set { _Prev_Acct = value; EntityState.FieldChange("Prev_Acct"); } } private string _Prev_Acct; public static FieldInfo prev_Acct = new FieldInfo("TW_Icd_Customer", "Prev_Acct");
        [Column]
        public string Payt_Terms { get { return _Payt_Terms; } set { _Payt_Terms = value; EntityState.FieldChange("Payt_Terms"); } } private string _Payt_Terms; public static FieldInfo payt_Terms = new FieldInfo("TW_Icd_Customer", "Payt_Terms");
        [Column]
        public string Payment_Methods { get { return _Payment_Methods; } set { _Payment_Methods = value; EntityState.FieldChange("Payment_Methods"); } } private string _Payment_Methods; public static FieldInfo payment_Methods = new FieldInfo("TW_Icd_Customer", "Payment_Methods");
        [Column]
        public string Payment_history_record { get { return _Payment_history_record; } set { _Payment_history_record = value; EntityState.FieldChange("Payment_history_record"); } } private string _Payment_history_record; public static FieldInfo payment_history_record = new FieldInfo("TW_Icd_Customer", "Payment_history_record");
        [Column]
        public string Bank_statement { get { return _Bank_statement; } set { _Bank_statement = value; EntityState.FieldChange("Bank_statement"); } } private string _Bank_statement; public static FieldInfo bank_statement = new FieldInfo("TW_Icd_Customer", "Bank_statement");
        [Column]
        public string Dunn_Procedure { get { return _Dunn_Procedure; } set { _Dunn_Procedure = value; EntityState.FieldChange("Dunn_Procedure"); } } private string _Dunn_Procedure; public static FieldInfo dunn_Procedure = new FieldInfo("TW_Icd_Customer", "Dunn_Procedure");

        [Column]
        public string Sales_Org { get { return _Sales_Org; } set { _Sales_Org = value; EntityState.FieldChange("Sales_Org"); } } private string _Sales_Org; public static FieldInfo sales_Org = new FieldInfo("TW_Icd_Customer", "Sales_Org");
        [Column]
        public string Distribution_Channel { get { return _Distribution_Channel; } set { _Distribution_Channel = value; EntityState.FieldChange("Distribution_Channel"); } } private string _Distribution_Channel; public static FieldInfo distribution_Channel = new FieldInfo("TW_Icd_Customer", "Distribution_Channel");
        [Column]
        public string Customer_Division { get { return _Customer_Division; } set { _Customer_Division = value; EntityState.FieldChange("Customer_Division"); } } private string _Customer_Division; public static FieldInfo customer_Division = new FieldInfo("TW_Icd_Customer", "Customer_Division");
        [Column]
        public string Sales_Office { get { return _Sales_Office; } set { _Sales_Office = value; EntityState.FieldChange("Sales_Office"); } } private string _Sales_Office; public static FieldInfo sales_Office = new FieldInfo("TW_Icd_Customer", "Sales_Office");

        [Column]
        public string Order_Currency { get { return _Order_Currency; } set { _Order_Currency = value; EntityState.FieldChange("Order_Currency"); } } private string _Order_Currency; public static FieldInfo order_Currency = new FieldInfo("TW_Icd_Customer", "Order_Currency");
        [Column]
        public string Switch_off_rounding { get { return _Switch_off_rounding; } set { _Switch_off_rounding = value; EntityState.FieldChange("Switch_off_rounding"); } } private string _Switch_off_rounding; public static FieldInfo switch_off_rounding = new FieldInfo("TW_Icd_Customer", "Switch_off_rounding");
        [Column]
        public string Cust_pric { get { return _Cust_pric; } set { _Cust_pric = value; EntityState.FieldChange("Cust_pric"); } } private string _Cust_pric; public static FieldInfo cust_pric = new FieldInfo("TW_Icd_Customer", "Cust_pric");
        [Column]
        public string Delivery_Priority { get { return _Delivery_Priority; } set { _Delivery_Priority = value; EntityState.FieldChange("Delivery_Priority"); } } private string _Delivery_Priority; public static FieldInfo delivery_Priority = new FieldInfo("TW_Icd_Customer", "Delivery_Priority");
        [Column]
        public string Shipping_Conditions { get { return _Shipping_Conditions; } set { _Shipping_Conditions = value; EntityState.FieldChange("Shipping_Conditions"); } } private string _Shipping_Conditions; public static FieldInfo shipping_Conditions = new FieldInfo("TW_Icd_Customer", "Shipping_Conditions");
        [Column]
        public string Order_Combination { get { return _Order_Combination; } set { _Order_Combination = value; EntityState.FieldChange("Order_Combination"); } } private string _Order_Combination; public static FieldInfo order_Combination = new FieldInfo("TW_Icd_Customer", "Order_Combination");
        [Column]
        public string Delivering_Plant { get { return _Delivering_Plant; } set { _Delivering_Plant = value; EntityState.FieldChange("Delivering_Plant"); } } private string _Delivering_Plant; public static FieldInfo delivering_Plant = new FieldInfo("TW_Icd_Customer", "Delivering_Plant");
        [Column]
        public string Relevant_for_POD { get { return _Relevant_for_POD; } set { _Relevant_for_POD = value; EntityState.FieldChange("Relevant_for_POD"); } } private string _Relevant_for_POD; public static FieldInfo relevant_for_POD = new FieldInfo("TW_Icd_Customer", "Relevant_for_POD");
        [Column]
        public string Max_partial_deliveries { get { return _Max_partial_deliveries; } set { _Max_partial_deliveries = value; EntityState.FieldChange("Max_partial_deliveries"); } } private string _Max_partial_deliveries; public static FieldInfo max_partial_deliveries = new FieldInfo("TW_Icd_Customer", "Max_partial_deliveries");
        [Column]
        public string Rebat { get { return _Rebat; } set { _Rebat = value; EntityState.FieldChange("Rebat"); } } private string _Rebat; public static FieldInfo rebat = new FieldInfo("TW_Icd_Customer", "Rebat");
        [Column]
        public string Incoterms { get { return _Incoterms; } set { _Incoterms = value; EntityState.FieldChange("Incoterms"); } } private string _Incoterms; public static FieldInfo incoterms = new FieldInfo("TW_Icd_Customer", "Incoterms");
        [Column]
        public string Price_detemin { get { return _Price_detemin; } set { _Price_detemin = value; EntityState.FieldChange("Price_detemin"); } } private string _Price_detemin; public static FieldInfo price_detemin = new FieldInfo("TW_Icd_Customer", "Price_detemin");
        [Column]
        public string Incoterms2 { get { return _Incoterms2; } set { _Incoterms2 = value; EntityState.FieldChange("Incoterms2"); } } private string _Incoterms2; public static FieldInfo incoterms2 = new FieldInfo("TW_Icd_Customer", "Incoterms2");
        [Column]
        public string Terms_of_payment { get { return _Terms_of_payment; } set { _Terms_of_payment = value; EntityState.FieldChange("Terms_of_payment"); } } private string _Terms_of_payment; public static FieldInfo terms_of_payment = new FieldInfo("TW_Icd_Customer", "Terms_of_payment");
        [Column]
        public string Complete_delivery { get { return _Complete_delivery; } set { _Complete_delivery = value; EntityState.FieldChange("Complete_delivery"); } } private string _Complete_delivery; public static FieldInfo complete_delivery = new FieldInfo("TW_Icd_Customer", "Complete_delivery");
        [Column]
        public string Partial_delivery { get { return _Partial_delivery; } set { _Partial_delivery = value; EntityState.FieldChange("Partial_delivery"); } } private string _Partial_delivery; public static FieldInfo partial_delivery = new FieldInfo("TW_Icd_Customer", "Partial_delivery");
        [Column]
        public string Acct_assgmt_group { get { return _Acct_assgmt_group; } set { _Acct_assgmt_group = value; EntityState.FieldChange("Acct_assgmt_group"); } } private string _Acct_assgmt_group; public static FieldInfo acct_assgmt_group = new FieldInfo("TW_Icd_Customer", "Acct_assgmt_group");
        [Column]
        public string Departing_country { get { return _Departing_country; } set { _Departing_country = value; EntityState.FieldChange("Departing_country"); } } private string _Departing_country; public static FieldInfo departing_country = new FieldInfo("TW_Icd_Customer", "Departing_country");
        [Column]
        public string Tax_classification { get { return _Tax_classification; } set { _Tax_classification = value; EntityState.FieldChange("Tax_classification"); } } private string _Tax_classification; public static FieldInfo tax_classification = new FieldInfo("TW_Icd_Customer", "Tax_classification");
        [Column]
        public string Customer_grp { get { return _Customer_grp; } set { _Customer_grp = value; EntityState.FieldChange("Customer_grp"); } } private string _Customer_grp; public static FieldInfo customer_grp = new FieldInfo("TW_Icd_Customer", "Customer_grp");
        [Column]
        public string Text_Internal { get { return _Text_Internal; } set { _Text_Internal = value; EntityState.FieldChange("Text_Internal"); } } private string _Text_Internal; public static FieldInfo text_Internal = new FieldInfo("TW_Icd_Customer", "Text_Internal");
        [Column]
        public string Text_Shipping { get { return _Text_Shipping; } set { _Text_Shipping = value; EntityState.FieldChange("Text_Shipping"); } } private string _Text_Shipping; public static FieldInfo text_Shipping = new FieldInfo("TW_Icd_Customer", "Text_Shipping");
        [Column]
        public string Text_Pay { get { return _Text_Pay; } set { _Text_Pay = value; EntityState.FieldChange("Text_Pay"); } } private string _Text_Pay; public static FieldInfo text_Pay = new FieldInfo("TW_Icd_Customer", "Text_Pay");
        [Column]
        public string Text_External { get { return _Text_External; } set { _Text_External = value; EntityState.FieldChange("Text_External"); } } private string _Text_External; public static FieldInfo text_External = new FieldInfo("TW_Icd_Customer", "Text_External");
        [Column]
        public string Attributes1 { get { return _Attributes1; } set { _Attributes1 = value; EntityState.FieldChange("Attributes1"); } } private string _Attributes1; public static FieldInfo attributes1 = new FieldInfo("TW_Icd_Customer", "Attributes1");
        [Column]
        public string Attributes2 { get { return _Attributes2; } set { _Attributes2 = value; EntityState.FieldChange("Attributes2"); } } private string _Attributes2; public static FieldInfo attributes2 = new FieldInfo("TW_Icd_Customer", "Attributes2");
        [Column]
        public string Attributes3 { get { return _Attributes3; } set { _Attributes3 = value; EntityState.FieldChange("Attributes3"); } } private string _Attributes3; public static FieldInfo attributes3 = new FieldInfo("TW_Icd_Customer", "Attributes3");
        [Column]
        public string Attributes4 { get { return _Attributes4; } set { _Attributes4 = value; EntityState.FieldChange("Attributes4"); } } private string _Attributes4; public static FieldInfo attributes4 = new FieldInfo("TW_Icd_Customer", "Attributes4");
        [Column]
        public string Attributes5 { get { return _Attributes5; } set { _Attributes5 = value; EntityState.FieldChange("Attributes5"); } } private string _Attributes5; public static FieldInfo attributes5 = new FieldInfo("TW_Icd_Customer", "Attributes5");
        [Column]
        public string Attributes6 { get { return _Attributes6; } set { _Attributes6 = value; EntityState.FieldChange("Attributes6"); } } private string _Attributes6; public static FieldInfo attributes6 = new FieldInfo("TW_Icd_Customer", "Attributes6");
        [Column]
        public string Attributes7 { get { return _Attributes7; } set { _Attributes7 = value; EntityState.FieldChange("Attributes7"); } } private string _Attributes7; public static FieldInfo attributes7 = new FieldInfo("TW_Icd_Customer", "Attributes7");
        [Column]
        public string Attributes8 { get { return _Attributes8; } set { _Attributes8 = value; EntityState.FieldChange("Attributes8"); } } private string _Attributes8; public static FieldInfo attributes8 = new FieldInfo("TW_Icd_Customer", "Attributes8");
        [Column]
        public string Attributes9 { get { return _Attributes9; } set { _Attributes9 = value; EntityState.FieldChange("Attributes9"); } } private string _Attributes9; public static FieldInfo attributes9 = new FieldInfo("TW_Icd_Customer", "Attributes9");
        [Column]
        public string SAP_Code { get { return _SAP_Code; } set { _SAP_Code = value; EntityState.FieldChange("SAP_Code"); } } private string _SAP_Code; public static FieldInfo sAP_Code = new FieldInfo("TW_Icd_Customer", "SAP_Code");
        [Column]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } } private DateTime _Time; public static FieldInfo time = new FieldInfo("TW_Icd_Customer", "Time");
        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } } private int _Status; public static FieldInfo status = new FieldInfo("TW_Icd_Customer", "Status");
        [Column]
        public string APO { get { return _APO; } set { _APO = value; EntityState.FieldChange("APO"); } } private string _APO; public static FieldInfo aPO = new FieldInfo("TW_Icd_Customer", "APO");

    }
}
